/*
* @Date: 2020/6/10
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/
export default {
  props: [{
    key: 'data',
    type: 'array',
    struct: [
      { key: 'value', type: 'string' },
      { key: 'label', type: 'string' },
      { key: 'disabled', type: 'bool' },
      { key: 'children', type: 'array' },
      { key: 'isLeaf', type: 'bool' },
    ],
  }, {
    key: 'level',
    type: 'number',
    label: '菜单级数',
  }, {
    key: 'value',
    type: 'array',
    label: '初始值'
  }, {
    key: 'onChange',
    type: 'function',
    label: 'onChange',
  }, {
    key: 'onOk',
    type: 'function',
    label: 'onOk',
  }, {
    key: 'onCancel',
    type: 'function',
    label: 'onCancel',
  }, {
    key: 'height',
    type: 'number',
    label: '筛选组件高度'
  }, {
    key: 'multiSelect',
    type: 'checked',
    label: '是否多选'
  }],
  /**
   * children渲染函数
   * @param param 参数
   */
  childRender: (param, page) => {
    return (
      <div className="sortable view-item-box sub">

      </div>
    )
  },
}
